package com.shuan.springboothello.tasks.quartz.cron;

import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Description: <br>
 * 启动方式二
 * @author lu.shuan<br>
 * @date 2021/12/12$<br>
 * @since V1.0<br>
 */
@Configuration
@EnableScheduling
@Component
public class SchedulerListener {

    @Autowired
    public CronSchedulerJob scheduleJobs;

    @Scheduled(cron="0 44 21 12 12 ?")
    public void schedule() throws SchedulerException {
//        scheduleJobs.scheduleJobs();
    }
}